Implemented train method in DictBigram.
Updated DictBigram to use a simpler interface.