made cache matrix