genTree