Adding new method to allow larger calculation value.
i.e. implement the algorithms with BigInteger and BigDecimal