implemented trapezoid and Simpson integrals