ReallocMem
Reallocates a dynamic variable