select kth with median of median