Very primitive memory allocator