Added implementation of PriorityQueue