Make read_segment_id() and mv_tree non static