Added generalized form of the DictBigram class. Names are horrible, I'll work it.