update two-sum