Cubic Function Factoring