Finish the ability to calculate edit distance for two strings.