top down find Distinct Subsequences in dynamic programming way