factoring perfect cubes