fixed pearsons coefficient matrix to 10x10

Fixed the Pearsons Correlation Coefficient Matrix to correct size, also
replaced 'var' with 'val' correctly.