optimization on mpi_datapoints_kmeans