solve 4sum
update 3sum with a similar algorithm of 4sum