MinStack implementation and tests.