Fix structure/segment_tree, math/mod_inverse