refined convergence detection in KMeans