cache matrix

exercise 2