factorize a-b-a cube-b cube