added __eq__ for lattices