Added minor changes in PriorityQueue