Algorithms two sum problem complete