Added basic priority scheduling.
Changed priority scheduling and implemented priority scheduling for threads waiting on semaphores.