subDist2Mat function

Dist2Mat subsetting