At first I have a list of lists of lists.
Each pair corresponds to variables x and y. (For instance in the first list of lists we have x=1 y=2, x=1 y=3 x=1 y=4)