Added heapify