add: USHER_SEG_EOS(end of segment) flag has been added.
change: function seg_getchild has been renamed to seg_getchild_idx. and, argument 'idx' has been added.
fix: should assign value of segment type to branch-segment type before segment fields changed.
add: static function dealloc has been added.