MIN Handle corner case in Haralick

This would arise numerically and sqrt(10e-10) = NaN
BUG Fix polygons with edges on the corner