Initial version of combine lists, which works on only two lists at a time.
Adjusted code to handle any number of lists.