simple quicksort, pivot is picked up by median 3 method, not complete quicksort part yet