2D 3D 4D matrices added, not yet tested