initial commit __dyrealloc()

use: reallocate memory space and copy the previous content in the new
space.
if new memory block size is greater than the previous memory block size
then the old content is retained fully, else the old content is
truncated.