Add segment tree with print