Optimize determinant
Add invert