Got a working version of the naive algorithm for the 2pair problem