DamerauLevenshtein calculation