SOLVE: separate out calculating the match vector.