Bipartite matching/String