Implements Hermite interpolation.