Got modular exponentiation using Montgomery multiplication working.

I think we could also use Montgomery multiplication for the lookup
table as well, but I’ll leave that for another day.