added operator == to matrix