Added a function called print list, but I have to figure out how to expand std::list by having an allocator template