Replace solveCubic() code with version that does not use cbrt() calls.