PriorityQueue code added