Make ShannonEntropyAccumulator a template class that can handle multiple
word types.