Reorganized and changes in Kmeans, sample