kmeans implemented
merged