Implements KMeans for classification and image compression. Also provides an implementation of initialization using KMeans++