Added PoolAllocator and unit tests for it.