working parallel kmeans