public void updateSegmentTree(int input[], int segmentTree[], int index, int delta){
        input[index] += delta;
        updateSegmentTree(segmentTree, index, delta, 0, input.length - 1, 0);
    }
Updates segment tree for certain index by given delta
src/com/interview/tree/SegmentTreeMinimumRangeQuery.java