use levenshtein gem, add algorithm testing