Solves the linear sum assignment problem (also known as the minimum weight matching in bipartite graphs).