final cacheMatrix.R