MPI: using MPI_Reduce instead of MPI_Barrier .. forgot to add file