CS323 - Homework on String matching and indexing