cache matrix and inverse cache matrix functions