MinimumDistance function

The "Minimum" distance