cleaning up the parallel kmeans