first version of stack_allocator.

No tests yet.