saving cachematrix.R file