added an in-order tree traversal