C# Implementation of the Levenshtein distance algorithm