refactor code taking Cartesian product of results to a sub
Merge pull request #106 from rns/ASF_traverser_Cartesian_product_code_to_sub

refactor code taking Cartesian product of results to a sub