added aligned_ptr fun to core/memory.hpp