implemented Stack with min() - O(1) function