adaptive simpson's method