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

Add root node before looping allocate table