Factorising a cubic polynomial (Method 1)