updated code and test case for min stack.