tree.h: tree_init & tree_add