This algorithm finds pairs in two lists adding up to this value.