quicksort hacked in