test for completion

while(upper != lower)