kmeans now returns a list of cluster ids