Source: https://cseweb.ucsd.edu/~dasgupta/291-geom/kmeans.pdf