A pure Terra implementation of stan's stack_alloc memory pool.
Removing the old C++ .dll version of memory pool.