Similar

Before merging:

- Implement similar function from paper
- Clean up fox code
`const auto * cross_cat` would be clearer