Added an interface for data allocation in base_memory_type