so I am trying to insert a new element to both Node* arr and int* map. Thus I first copy the old pointers, then free them. This is my code:
struct Node* temp