very rough draft of Stack<T> template - passes initial regression tests but only cuz said tests are so weak!