Working linear interpolator with test