Similar

Before merging:

- Implement similar function from paper
- Clean up fox code
When efficiency is a concern, one typically performs `nth_element; resize; sort` rather than `sort; resize`, but I can pick this up in a profiling pass.