Add solution to edit distance