Split memory manager into 5 files (instead of 1).