add kmeans using samples