quicksort now works relatively fast