simple version of parallel kmeans