kmeans算法实现 a simple k-means clustering routine. returns the cluster labels of the data points in an array.