cache matrix functions filled in