Heapify, HeapSort, and PriorityQueues