Heap sort inplace implemented.
formatting MaxHeap