compute correlation

compute spearman & pearson correlation