implemented boot memory allocator