Data structures on heap.

Contributed by the Forester team.

