get children and getChildrenData function implemented
traversal of tree and search completed