implementing dynamic memory allocation for cells
bounding boxes added
SO OPTIMIZED
even MORE optimization
memory-opt merge