Changes for cache matrix.