Fix Rubocop errors on Linked List