finish kmeans