struct for tree parse
finish trainning tree structure