cleaned up clustering for kmeans (with tests). continued NaiveBayes