add getChildren() method to Tree.