update kmeans