pre-order, in-order traversal