Complete exercise cachematrix.R