Added a tree data structure with methods