edit distance in go