PulsarCrossCorr_v2: removed an unnecessary line in diagonal components function
PulsarCrossCorr_v2: modified diagonal function and add some lines in get-next-template function