Quicksort with first as pivot with proper comments