Heap sort with existing heap data structure