add distinct subsequence