change stack implementation to use a vector for a 40% speed increase on this computer (there were way too many allocations going on with the linked list approach)

* also, implemented shrink method on vector_t
* also, in case the stack grows too big (>256) shrink it. I only do this because I want to, there is _no_ good reason to do this whatsoever. In fact, don't ask why I do this