Added a basic allocator base class and default allocator.