Rename existing interpolate -> resample
Define interpolation as a template function
WIP