bst non recursive fix in progress