Stack that returns its minimum value in constant time implemented