Added priorityQueue and test for it