continue with extra credit on ex18

Finish debugging heap sort.