use array copy at root instead of MPI_Sendrecv