Calculate the Pearson correlation between all genes in a given matrix