Added method to find maximal state sequence given observations.
Untested.