Added adaptive quadrature function for part 1 of final