Adding function that finds mindistance between two segmetns (without allowing to go away from the segments). Can be used for a PoCA cut --David Caratelli