buildSpouseSegments function

Build spouse segments