cache matrix demo