C + MPI, dynamic allocate version