Port's Lucene's Levenshtein DFA to .NET