added spearman correlation to dist_mat