Finished ADTree implementation