Framework for distributed computing with C++ MPI programs