Exports heap sort