I am trying to create a custom data type for MPI and pass the structure of d_type from the root process to other processes but I am getting a segmentation fault and the followin