Use linear-time selection in an appropriate way.