make getInt fast implementation
modify segtree