template pairsearch class on pixeliterable