Calls to k-means implementations