linfun function

Linear interpolation function.