Stack with min() operation