Potentially fixed critical spline code for linear and quadratic "splines".  Closes https://github.com/CoolProp/CoolProp/issues/111

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>