init the problem of edit distance