Factoring a sum or difference of two cubes