Pearson Correlation Matrix Computation - Coding problem | OneNoughtOne