Trying to allocate 2d array in shared memory. Execution returns segmentation fault during assignments (I think). Should I do the assignments in another way? This is my code: