heaps and heapsort in class work, heap doesn't work properly yet