Revise the baseline algorithm, and changed the converge condition