Jacobi algorithm for symmetric eigenvalue problem and integrable gradient system of Lax form