Add function Cifi to calculate all correlation coefficient between any position of source and template