Simulating parallel pre-order traversals of two binary trees
The traversals gives rise to a list of node pairs from the two trees