data structures for corpora and bags of words, can load .dat files