Some Generalizations of the Euclidean Two-Sample Matching Problem