emove duplicates from sorted list II, note return the newhead