Big decimal version

This version of the calculation has been vastly improved. Now all previous double and long variables have been changed to BigDecimal objects in order to handle large numbers. This version also implements the default rounding mode for IEEE 754 format numbers.