Still cannot understand edit distance