Homework #17
Heapsort