Stack Implementation (CodeEval)