to be honest I would move ``_nth_orderded``, ``_nth_ordered_slow`` to ``core/algorithms.py`` as well (as all the helper functions are then logically grouped there)