in-order traverse of a tree