one dimensional linear interpolation