https://www.shiftcipher.com/cryptography/how-to-quickly-compute-modular-multiplicative-inverse/
How to Quickly Compute Modular Multiplicative Inverse