Extrapolation with memoization
Extrapolation with memoization