hacked in damerau levenshtein algorithm (not tested)