DP. Just for reviewing edit distance.