remove duplicates from linked list 1->2->2->3 should be 1->3