Computing the Pearson correlation score