finished dlinkedlist with mem leaks and debug