Finished the cache simulator (exercise 5).