static allocator

declare alloc as a static data member