Heapifier successfully creates a max heap out of an array