An adaptive extrapolation algorithm for automatic integration | Synapse