XFEM: Replaced some constexpr with #define.
Geometry: implemented line-line distance computation and corrected
computation of intersection points. Also made various small
optimizations.