i am in need of an efficient way to resize a 2d array. the 2d array must be able to increase and decrease in size very frequently.

currently i am doing it the least efficient way possible.

...