update k-means with iteration-bound