programminig assigment 2 cache matrix