Generalized Cross Correlation Matlab Code