3sum and 4sum