Completed index example

Used the Python dict data structure (hash table) to implement an
inverted index