edited cachedmatrix.R file