dist.minmax function

Min-Max Distance (aka Ruzicka Distance)