small rearrange
Vectorized log_probabilities a bit
vectorized log_probabilities
Vectorized em
Made them parallel again
use ration instead