Update cachematrix.R

Final version