Create edit distance