Fixed the error when running Viterbi decoding on a chain with only one node (thanks to Simon Lacoste-Julien).

Fixed the error when running Viterbi decoding on a chain with only one
node (thanks to Simon Lacoste-Julien).