I've taken this class. If you give me a moment...nope I can't find it. I have a conjugate Graham-Schmidt, but no Newton Raphson. If you have access (or know someone who does) to the Numerical Recipes website or book, I'm sure that there is a routine in there for it.
The guy who wrote this code uses the traditional Newton-raphson method to find the roots of the Legendgre polynomials, you can look and see what he does