started adding methods for profiling middle and trapezoid sums