Ported Slic3r::BridgeDetector to XS