rooted trees