Implemented linear interpolator.