class Exponentiation {

	public static BigInteger modInverse(final BigInteger a, final BigInteger modulus) throws ArithmeticException {
		if (GMP_AVAILABLE) {
			return Gmp.modInverse(a, modulus);
		} else {
			return a.modInverse(modulus);
		}
	}

}