updated TwoSum