add matrix functions to array util for pearson correlation computation