Added a new routine to solve quadratic matrix equation (based on a Newton algorithm with line search).