CacheMatrix.R for submit