完善kmeans