cubic function factoring problems