minor changes in KMeans
Merge pull request #1831 from mazumdarparijat/fastkmeans

minor changes in KMeans