finish bst inorder traversal without generator for tests