Comparing diff implementations on HMM example.