Module heap
buldak
heap sort algorithm.
O(Nlog₂N)
Sort in ascending order using a heap sort algorithm.
Sort in descending order using a heap sort algorithm.