Added hw for 517. HMM is working, now working on the suffix tree.