s[0] = 0;
t[0] = 0;
for (int u = 1; u < dimensSizes[actualDimension]; u++) {
positions[actualDimension] = s[q];
positions2[actualDimension] = u;
<BUG>while ((q >= 0)
&& (distancefunc(t[q], s[q], actualValues[getIndex(positions, dimensSizes)]) > distancefunc(t[q], u,
actualValues[getIndex(positions2, dimensSizes)]))) {
</BUG>
q--;

s[0] = 0;
t[0] = 0;
for (int u = 1; u < dimensSizes[actualDimension]; u++) {
positions[actualDimension] = s[q];
positions2[actualDimension] = u;
while ((q >= 0) && (distancefunc(t[q], s[q],
actualValues[IntervalIndexer.positionToIndex(positions, dimensSizes)]) > distancefunc(t[q], u,
actualValues[IntervalIndexer.positionToIndex(positions2, dimensSizes)]))) {
q--;
