implement in-order traversal of two trees