Moved methods of class List to module level

This converts all methods, all of which were static, of the class `List` of the module `list` to module-level methods. The module was renamed to `lists` (which is admittedly not very creative) to avoid conflict with the builtin `list`.