Shared memory vars, semaphores, and mutexes set up

memory is allocated and deallocated, and semaphores and mutexes are set
up as well. Currently trying to figure out why there is a segmentation
fault (which occurred after terminatesimulation method was added), then
I will add in the other functions for the actual smaug's world program