Added basic functionality of Priority Scheduler