there's a bug, the quick sort may changed the stack, and n is been
changed

the bug is sizeof(allBox)
delete a loop, we can find the max in the

j's loop