stack with min method
judge whether poping is valid