Indexer program for CS214