Calculating Correlation Coefficient