SpecialStack 's member method to  insert an element to it. This method  makes sure that the min stack is  also updated with appropriate minimum  values
void SpecialStack :: push ( int x ) { if ( isEmpty ( ) == true ) { Stack :: push ( x ) ; min . push ( x ) ; } else { Stack :: push ( x ) ; int y = min . pop ( ) ; min . push ( y ) ;