Use array for memory pool.