TrainTestModels helper class, Levenshtein distance copied from web