move the common codes of warping Interpolator into a basis class WarpInterpolator.