Added accumulate method to WMathHelper.