Additions and one bug fix (BN_mod_inverse).

This, `BN_is_one`, `BN_is_word`, and `BN_is_odd` are all unused. Could you remove them for now?