4sum, remove duplicate while iteration