Spline library, errors compiling example code

It should be noted that floats and doubles, on the Arduino, are the same size, so no loss of precision will occur using floats instead of doubles.