added spectral decomposition of correlation coefficient code