Minor refactoring of EqualMatrixChecker. Reusing matrixSize.