cs433(part1): build a dictionary for the terms of a small document collection