build_maha_mats Builds the matrices that we will then use to calculate the mahalanobis distances for each matched set
Useful links