Add qsort and kth_smallest.