Walk me through how you would implement a custom memory allocator for a system with strictly limited RAM.