added cachematrix.R function

added cachematrix.R function