Finished implementing the restricted viterbi code. Testing seems to show
that it works properly. Mades changes to the innermost loop to improve
the overall speed of the function. Closes #17.