for ( i=len, k=sort[len]; i>=0 && k==sort[len]; --i, k=sort[i] );
i2 = i;
LiteralIterator iter = map.keyRangeIterator(k1, true, sort[len], false);
for ( i=i1; iter.hasNext() && i <= i2; ++i ) {
assertEquals((int)iter.nextDouble(), sort[i]);
}
assertTrue(!iter.hasNext() && i == i2+1);
iter = map.valueRangeIterator(k1, true, sort[len], false);
for ( i=i1; iter.hasNext() && i <= i2; ++i ) {