flatten_corr_mat function

Flatten correlation matrix to pairs