first pieces for the HMM-viterbi

only ‘def getInstructionCounts(maxNGrams)’ is legit.  other method is
defunct for now.
hmm