Add remove_duplicate_seqs internal function