Added realloc() and free()