Stability of $K$-Means Clustering