{ if ( indices_segments != opt_segments ) { for ( int i=1; ichain_length = chain_length; } { for(int i=0;i