template for MPI programming