distinct subsequences

2-d dynamic programming