completed the cacheMatrix.R