Fixed bug in MPI mode: MPI_Allgather instead of MPI_Alltoall