deduplicate a linked list
fix rubocop errors
Merge pull request #14 from reedns/deduplicate

deduplicate a linked list