calc_basis_corr_mat function

Estimate the correlation matrix for a basis set.