working on speed curve
interpolation using cubic splines