Added support of lists of files.

By using lists of files to reduce I/O and reinstanciation, the execution time
dropped by a factor 10.