k-means clustering: improved convergence criterion