permutation: convert C++ style to python style
update binary tree traverse