Started quicksort logic