add edit distance for two strings