updated optimal_bst