Fixed carry bug in adder. Add test for invMod bug.
Fix modInverse