Finish HeapSort, prepare for automation