Build bipartite graph and use biadjacency matrix to build cost_matrix for Hungarain Algorithm