Added generic Tree structure.