initial minimum at the first place
original code cannot handle the transition of minimum value
this is no sense check the inner values of the stack since it only records the differences
change test cases
add case from oj