[Platform] Add basic memory manager