A Hopf algebra structure in self-dual gravity