Added comments to implementation of Viterbi algorithm