Check if a BigInt number is odd with respect to a given modulo.
static bool isOdd(BigInt num, BigInt modulo) { return (positiveMod(num, modulo) & BigInt.one) == BigInt.one; }