fix makefile
queue implementation for threads schedule
stage 1 completed
added error check for stage1
added list_clear() for destroying semaphores
stage2 completed
stage3 completed