Optimize the traversal of binary tree, add a new algorithm test