Implemented parallel MPI version