need faster bfs->inorder conversion