redid RSA constructor with custom BigInteger extensions