Function for correlation coefficient calculation.
cp_cor(mat)
mat
The input matrix for correlation calculation.
The output correlation matrix.