added 2d matrix type to improve maintanability
Merge branch 'master' of https://github.com/ncannasse/h3d