Initialize tree structure