algorithm optimization

created a 2D array of cell pointers to easily access sector cells