Computing 2x2 and 3x3 Matrices