clarified cacheMatrix function