Implement operator== and operator=.
Also provide an interface for garbage collecting deleted nodes
(garbage collection may not be useful yet).