implemneted list_remove_dupes()