update solution for min stack.