ik: Enforce a MAX_ITERATIONS to prevent infinite loops.
ik: Add segment lengths input.

Comma-separated list of numbers.