update Distinct_Subsequences