quicksort working before changing pivot point