Solved removing duplicates from linked list