a set version of 2 sum