add distinct subseq