Use companion matrix instead of cv::solvePoly to compute roots of polynomial.