Command line utility to print all combinations of a 2-dimensional list