fix optimal bst