Added summary function that will perform several statistical tests for phase II.
Abstracted out how the full set of potential matches are reduced. The trimatch function takes another function as a parameter to reduce the possible matches.