Area under curve trapezoidal rule