quicksort with function partition
quick sort with new operator