Adjust BN_mod_inverse algorithm selection according to experiments on