search for twins in rows & cols