Description:
- Matrix functions for Newton.
- Optim change to perform only 10 iterations.