Naive quicksort algo using first index as pivot