Update cachematrix.R

Creating the program for the Assignment