Add a string edit distance algorithm.