Add implementation of Levenshtein distance.

The implementation is a bit naive, but could be improved at need without much
extra effort.

Signed-off-by: Brian L. Troutwine <brian@troutwine.us>