How to factor x2 - 2xy + y2 + x3 - y3