add log lookup table to greatly accelerate building dictionaries.