Implemented multipoint linear interpolation.