I have a two tree structure like below.

Geography tree:
TotalGeo
| |
APAC Europe
| | |
CHN INDIA UK

BusinessSegment Tree:
TotalSeg
| |
Fin Economic
| | |
Loan E1 E2

I need to do a cartesian product these two trees and create a new tree. And then i shoud have a method using which i can find the all ancestors of a given node.

Please help.