update: distinct subsequences