conditionally calculate [inverse table](https://github.com/jellc/Library/blob/master/src/modular/inverse.hpp) in advance and make each call faster.