Working on Heaps and HeapSort