Fix LinkedList class and add specs