added basic matrix class for 2x2 matrices