change struct declaration in segment tree