added PriorityQueue operations and Comparator implementation