Example using PyMaxflow alpha expansion, to the binary case