adaptive simpson's method for integration