cachematrix.R file implemented.