Update Double List.cpp

Made it compact, less error-resistant. Template, removed exception rising.