Initial code dump for a basic heap/heapsort.