dist histograms...rather naive attempt to bypass pdist on huge number of points