Add visit_in_order implementation for the tree.