Moved extraction methods from PriorityQueue into Heap class