adding broken code for 2d array allocation.