deering update to cacheMatrix.R file