Implemented PriorityScheduler and test cases