Rewriting data::Stack to use static array.