Remove duplicates from sorted link list AC