LKDist function

Find all pairwise distances within a maximum distance.