Add new allocating a2d functions and use them.