Major Sparse HMM optimisation.