Update cachematrix.R

First draft.