Minimum distance parameter for neighborhood functions (#583).

Python interface updated, but it does not implement the
new parameter, always uses 'mindist=0'.