reimpl heap sort, do not copy arr, waste first el