Heap structure and maxHeapify routine