Add edit distance naive and memoize version