add result in line 24 of cacheSolve function