Added Shared-Memory and Semaphore initialization