progress on caches.
Massive progress on caching in DiscreteProblem.
An update of CMakeLists.txt.
Refactor class LightArray.
Gcc fixes.