Add ThreeSum algorithms