heapsort works on arrays with NO duplicates