Cleaned up segment tree for non-rannge-update case.