fixed missing heapify operation when building a heap from an array