Implemented non-working  #generateAllPossiblePairs + #UT