Calculate coordinate-specific cross-distance matrices, only for nearest neighbors and store in an array
Useful links