void set( int i, int value ){ if( i >= _val.length ){ List<int> tmp = List.filled( i + 1, 0 ); for( int j = 0; j < _val.length; j++ ){ tmp[j] = _val[j]; } _val = tmp; } _val[i] = value; }