Add == and != operators to matrices