Fixed errors on quicksort.