collectBestMatchInfo function

Collect information regarding the pattern-match