Add kmeans algorithm.