Implementing MPI-like collective operations using RMA to exploit persistence