Added .each_cons for internally testing Levenshtein distance