Changed LinkedList implementation