check hmm algorithm validity (#812)
check hmm algorithm validity (#812)

Without this check predict() will always return the `viterbi` method if the algorithm is anything but `map`
jmschrei/pomegranate,jmschrei/pomegranate