addTree data structure