Add a new wrapper function Realloc() to realloc the existing memory block.