Create sharingmemory_by_node.c

// This example shows how to coordinate all the mpi processes involved 
// in the computation in order to share memory among those lying in 
// the same node.

IMPORTANT: In this example, we make the following assumptions:
 
      a) processes are distributed in a round-robin fashion over all the nodes
      b) we are using MPI 3.0