general solution of cubic equation