updating kmeans