CreateTree doesn't work, so rewrite the main func; after testing, the traversaling is ok all the three orders.