Add polynomial root finding code