Adding KMeans regular implementation.