Optimize the Matrix3::getInverse() method