Implemented Semaphores class which will make use of semaphores extremely easy