Calculate Pearson correlation coefficient for part of a matrix
pearson_correlation(mat, i, j, iR, jR, sds, n, asSample)
layers_correlation pearson_correlation_matrix