limit pair generation to the first 17000. extract iteration over pairs to a separate function.
limit pair generation to the first 17000.
extract iteration over pairs to a separate function.

yishayv/lyacorr,yishayv/lyacorr