kMeans implemented, small tweak to knn too