added threshold to levenshtein distance calculation

running time for default case now ~8min