added a dynamic load balancing to the MPI parallelization