update second trial of distinct-subsequences