Added merge/split to BerkeleySegmentationTree