27.Commit:	added matrix/grid interface
mskoenz

DONE:
- added grid and matrix interface
- added types.hpp
- removed result.hpp (moved content to types.hpp)
- changed rng interface and fixed it
TODO:
- write interface validator for grid/matrix