min_stack.java: fix a bug