kmeans base update