convert a sorted vector to bst