Entangling dipole-dipole interactions for quantum logic in optical lattices