update ThreeSum classes