added BST root get answer function