simple allocator, for minor speedups