Delete the realloc function it's not so necessary