Completed cacheMatrix.R