crossNN function

Compute cross-type nearest neighbor distances