Segment-tree Simple class represents classic segment tree for sums with set(int index, double value) and getSum(int leftBound, int rightBound) methods