Desired performance improvements: - In `rewire_array`, change the implementation from Python to Numba. - In `FinRel._contract2`, use `dot` instead of `einsum` wherever possible. - In `FinRel._contract2`, consider using a lower-level call to the C version of `einsum`.