// test for correct position
if (0 <= pos - 1)
assertTrue ("search error less " + pos + " " + index.elementAt (pos - 1) + " " + n, index.elementAt (pos - 1) <= n);
if (pos + 1 < index.size ())
assertTrue ("search error greater " + pos + " " + index.elementAt (pos + 1) + " " + n, index.elementAt (pos + 1) > n);
}
list = index.get ();
n = Integer.MIN_VALUE;
for (int i = 0; i < list.length; i++)