Changes to make quicksort with randomized array possible