Added a new torch.match() function.

That function allows matching batches of vectors with batches of
kernels. It's general enough that I thought it would be a nice addition
to the base module.