Programming Assignment Version1 cache matrix