add segment tree lazy function