Pearson product moment coefficient Algorithm