Updated StackAllocator to have a bottom and top version.