kmeans working and returning clusters and centers