Cleanup three color alg, still breaks on some polys