Solve ax^3+bx^2+cx+d = 0 for x