finished with search the kth smallest item