added ability to compute correlation of matrix, by comparing cells