update binary-tree-preorder-traversal