Remove duplicate elements in a LL