Update cachematrix.R

R Programming - Programming Assignment 2