DP min edit dist strings