Added memory.h

memory.h contains replacement functions for new/delete to simplify usage of of custom allocators.