build_data_structures now includes a document frequency table.
Retrieves word frequency table data structure and uses table for frequency lookups.