s1.updateByIndex(0, new Double(1.0));
assertEquals(1.0, s1.getMinY(), EPSILON);
assertEquals(1.0, s1.getMaxY(), EPSILON);
s1.updateByIndex(0, new Double(2.0));
assertEquals(2.0, s1.getMinY(), EPSILON);
assertEquals(2.0, s1.getMaxY(), EPSILON);
s1.add(-1.0, -1.0);
s1.updateByIndex(0, new Double(0.0));