Const improvements for ca basics.
Extra simulator class. New, safer indexing for grids. Line iterators for grids. Working, except dump.