Modified SecretPolynomial to use BigInteger