Programming assignment 2 cache matrix