get min element in O(1) operation in stack