Improvement: the global heap instance can detect that the newly copied pointer is in the same stack than the previously copied one, and link them together.