Added Quadrature rules: midpoint & trapezoidal.