Implementation of BigDecimal in PHP