Add ADT tree code