traprule function

Integration by Trapezoidal Rule