implemented k-means change-check

Stop if the centroids don't change anymore