E$^2$CM: Early Exit via Class Means for Efficient Supervised and Unsupervised Learning | Read Paper on Bytez