linked list library improved