make scorr work and test it
Merge pull request #1 from hamogu/xcorr

make xcorr work and test it