Vectorize match method