segment tree for static field