The in-place Heap Sort algorithm