Verified that quicksort works properly.