finish makeCacheMatrix function