Work state with memory overload, changes some from outer to inner data structure

Work state with memory overload, changes some from outer to inner data structure, but points array is continuously  growing leading to memory overload