Heap Sort, test data, improved Merge Sort and Heap