add support for computing correlation matrix; add tests for pearson and spearman