Added MPI synchronization utilities
Replaced old MPI calls with new one
Implemented MPI learning and inference