get_residual_cor function

Calculate the residual correlation matrix from a latent variable model (LVM)