buildCor function

Functions to build correlation and covariance matrices.