Midpoint Riemann Sum definition