add generic createRoot and addChild methods to tree and add dynamic update/insert to tree