updated computePairwiseMatching.m