Interpolation using memories