Implements BigDecimal class.