Bug fix, new segment tree implementations, moved IOReader