Fix/cart intersect

This fixes ticket https://svn.boost.org/trac/boost/ticket/10904.

In cart_intersect an invalid Dimension may be choosen for very small segments, i.e. the sum of differences between coordinates may be greater even if one of them is 0 which deeper causes to create a ratio with denominator equal to 0.