sorting: find kth element
sorting: non-recursive find the kth element