Adding TreeUtils class