completed cache matrix assignment