C++ program to compute the maximum weighted bipartite matching of a graph