Fixed several errors with the restricted viterbi path code. Also
finished implementing the Viterbi set code. As far as I can tell, the
code works properly. However, it is slower than I would have hoped.