Find k-th largest/smallest