Add Det

1. Add code to define Det.
2. Slightly shorten xActionSpace by using i++ and ++n.
3. Separate invSimplify from xInverse. Internal calls for Inverse are
directed to xInverse