neighbor distance histogram tool