Implementation of Levenshtein that allows to define different weights for different character substitutions.
the strategy to determine character operations weights.