log probabilities instead of regular probabilities to avoid underflow and because additions are faster than multiplications