optimize use middle pivot in quicksort algorithm to find k maximum number from a bunch of number