Added methods to Matrix3 and Matrix4