Add SharedMemory and Semaphore classes