add a simple matrix type