added 2x2 matrix implementation