Heap sort demonstration