[libc++] Split the memory-related algorithms out of <memory>

Differential Revision: https://reviews.llvm.org/D100318

GitOrigin-RevId: 4f9b2469f33f07d0e730915bcfab9ce74c34980d
3 files changed