evaluate_primal function

Compute value of primal problem given flows and arc costs