Added root finding fuction to qrd.cc.
Added root find function to qrd.cc.