Fixing descending/ascending in heap sort