Updated cacheMatrix.R file