remove duplicates from a linked list 

remove duplicates from a linked list