レーベンシュタイン距離
// for all i and j, d[i,j] will hold the Levenshtein distance between