Computes the Cartesian Product of 2 and 3 sets and its inverse