REmoved memory manager, becouse it is not working. Layer Switcher not working now.
But working zIndex sorting layer visibility changing.
Sorting only visibleLayers before rendering.
Silly bug fixed.
Sorting baseLayer bug fixed.
Another silly one bug fixed.
Some silly bugs fixed.
Segment containing wiped out (cleared out) materials should not be loaded.
Woah! Great optimization here!