ADD: Implementation of a segment tree data structure in Java