xcorr for long traces (ver 2011a abd befoore)