Added Kuhn algorithm for bipartite matching