Added class CollectingAllocator.