implement memoized led
put 'levenshtein' into separate file