Make bignum.c pass all the tests in bignum-test.c. Includes some speed improvements (eg, Barrett reduction).