Update cachematrix.R

This file was created for the Coursera Course called "Programming in R".