add kmeans
remove the redundant function
fix the function name
Merge pull request #1077 from bitwangyaoyao:2.4_kmeans