LinkedList utility class (doubly linked)