First part of Matrix3 implementation