A quick implementation of Levenshtein distance