distinct-subsequences: O(mn) dp 16ms