Remove duplicates : elem, notElem