Everything works but quicksort at 10000