use log probabilities throughout the system.