BSP on MPI library in C++