Update cachematrix.R

initial implementation