Added CartesianGrid-ctor taking a parameterObject-

- Extracted out method CartesianGrid::init2D.
- Added unittest.