Revert "heapsort"

This reverts commit 53009bae022342736d43ffbe8a0277627db394e7.
d