Fixed any number of leaf node in BST for cartesian product for each BST