Source: https://web.math.ucsb.edu/~vtkala/2016/S/4B/FactoringCubicPolynomials.pdf