randomization of the rows (in multithreading)
update the function mpi_multithreading