double linkedlist.cpp debugged