fixed the error in cacheSolve function