Add root node before looping allocate table
Merge pull request #2 from shamenchens/TreeData2

Add root node before looping allocate table