Added Basic Memory Allocation

Added basic memory allocation into the engine, there is still much more
to go.