residual_correlation function

Construction Residual (row/column) correlation matrix