Heap sort doc and implementation + example