Adds removing duplicates in a linked list