Remove duplicates from list.