set affinity thread in core parallel levenshtein.