Algorithm AS 136: A K-Means Clustering Algorithm
Hartigan, J. A., Wong, M. A. · Applied Statistics · 1979