Implemented iterative heapify operation.
Gets the space requirement for heapsort down to O(1).
Also added better comments to heapsort.