Update setFrozenColumns

Identified a programming pattern that promotes memory leaks.

re-factored the private functions in the setFrozenColumns method to focus around the method context(this) or lookup objects a new instead of referencing external objects.

when we reference external objects and we do not cleanup the reference this can lead to a memory leak and a degradation of performance over time.