Implement quicksort with first element pivot