Added Integrate() method for splines