Implemented MinStack: push, pop, minNum methods all have O(1) complexity