added function for Pearson correlation coefficient