Update cachematrix.R

#for R programming assignment 2 
#open to comments/questions/ridicule