cachematrix function

assignment 2