Remove duplicates froma sorted list