schedular using priority queue that uses linked list library