add edit distance solution