replace references with using statements
mpi C++ version working