started work on heapsort