implemented trapezoid and Simpson integrals

maybe let's name it integrate, for consistency with breeze.optimize, etc.?