minimized object creation overhead in levenshtein