Assignment 1 for CS 564: A simple index for words in texts