Maxcut cost function. The code implements a QUBO formulation of this problem.