heap-related code
quicksort cleanup