Documentation added to heap-sort.