Working version using searchRingsArray_pthread. The function launches 4 sub threads to search the NodePairs array.