added cross correlation
added spline interpolation