GeneralCor function

Generalized Correlation function