Heap Sort, improved test, Merge Sort and Heap