adding 3x3 matrix class