added basic matrix type