Added a math class that is able to calculate the definite integral of a function.