Added correlation matrix calculation to the matrix data structure.