Solving For Roots Of A Cubic Function