added basic matrix module