added some code to kmeans-para