implement createSearchTree