correlation_matrices function

Calculate correlation matrix and threshold