add function remove_duplicates
test remove_duplicates